﻿#region Copyright information
// 
// Copyright © 2012-2013 Yongkee Cho. All rights reserved.
// 
// This code is a part of the SubnetworkToolkit and governed under the terms of the
// GNU Lesser General  Public License (LGPL) version 2.1 which accompanies this distribution.
// For more information on the LGPL, please visit http://bol.codeplex.com/license.
// 
// - Filename: Options.cs
// - Author: Yongkee Cho
// - Email: yongkeecho@outlook.com
// - Date Created: 2013-01-30 2:55 PM
// - Last Modified: 2013-01-30 3:21 PM
// 
#endregion
using System.Text;
using CommandLine;

namespace SubnetworkToolkit.Convert
{
    public class Options
    {
        [Option("m", "mode", HelpText = "[Symbol to Id (0) | Id to Symbol (1)]")]
        public int Mode { get; set; }

        [Option("i", "inputFile", HelpText = "Specify an input GMT file.")]
        public string InputFile { get; set; }

        [Option("o", "outputFile", HelpText = "Specify an output GMT file.")]
        public string OutputFile { get; set; }

        [HelpOption(HelpText = "Dispaly this help screen.")]
        public string GetUsage()
        {
            var help = new StringBuilder();
            help.AppendLine("Usage : annotation [OPTION]");
            help.AppendLine("Options:");
            help.AppendLine("    -m           mode");
            help.AppendLine("    -i           input file");
            help.AppendLine("    -o           output file");
            help.AppendLine();
            help.AppendLine("e.g. annotation -m 0 -i input.gmt -o output.gmt");
            return help.ToString();
        }
    }
}
